 $('.profile-edit').click(function() {
        var responseData = {"code":"success","message":"success","data":{"id":254687,"name":"35262319750620001X","uid":22,"gender":"male","certificate_type":"identity","certificate_id":"35262319750620001X","birthdate":"1975-06-20","nationality":"001","country":"001","province":"001032","city":"001032002","district":"","address":"","mobile":"15061818021","email":"","emergency_contact_person":"sfs","emergency_mobile":"13863698660","blood":"a","cloth_size":"m","pb":0,"pb_certificate":"","health_certificate":"","create_ts":1481279579,"modify_ts":1481783636,"cloth_gender":"undefined","pant_gender":"undefined","pant_size":"xs","status":1,"mobile_code":"086","emergency_mobile_code":"086","lastname":"","firstname":""},"url":null};
        var dataId = $(this).attr('data-id');
        var url = "http://beta.ihuipao.com/ucenter/edit/isajax/true/id/"+dataId;
        $.ajax({
            type: "POST",
            url: url,
            },
            success: function(response){
                console.log(response.data);
                var data = response.data;

                $('.history-edit').find('input[name=name]').val(data.name);
                $('.history-edit').find('input[name=gender][value="'data.gender'"]')[0].checked = true;
                $('.history-edit').find('input[name=birthdate]').val(data.birthdate);
                $('.history-edit').find('input[name=certificate_id]').val(data.certificate_id);
                $('.history-edit').find('select[name=blood]').find('option[value="'data.blood'"]')[0].checked = true;
                $('.history-edit').find('select[name=nationality]').find('option[value="'data.nationality'"]')[0].checked = true;

                $('.history-edit').find('input[name=country]').attr('value', data.country);
                $('.history-edit').find('input[name=province]').attr('value', data.province);
                $('.history-edit').find('input[name=country]').attr('value', data.country);
                $('.history-edit').find('input[name=city]').attr('value', data.city);
                $('.history-edit').find('input[name=email]').val(data.email);
                $('.history-edit').find('input[name=emergency_contact_person]').val(data.emergency_contact_person);
                $('.history-edit').find('input[name=mobile]').val(data.mobile);

                $('form.form-horizontal').append('<input type="hidden" name="reset" value="ignore">');
                $('form.form-horizontal').submit();
                $('form.form-horizontal').find('input[name="reset"]').remove();

                //显示弹窗
                $('.history-edit').show().css('opacity','1');
                $('#my-backdrop').show();
                
             },
             error:function(){
                 $.messager.popup("网络问题，请稍后再试");
             }                 
        });

    });


